package com.oceanread.cn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.oceanread.cn.entity.Pipeline;
import com.oceanread.cn.entity.Treelist1;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface Treelist1Mapper extends BaseMapper<Treelist1> {
   List<Treelist1> getall();
   List<Treelist1> query(@Param("key") String key, @Param("value") String value);
   List<Treelist1> equal(@Param("key") String key, @Param("value") String value);
   List<Treelist1> getTablelist(@Param("start") int start, @Param("end") int end);
   Integer getnum();

   Integer update(@Param("SYSID") int SYSID,
                  @Param("id")String id,
                  @Param("name")  String name,
                  @Param("open")  Boolean open,
                  @Param("checked")  Boolean checked,
                  @Param("influencechild")  Boolean influencechild
   );
   Integer insert(@Param("id")String id,
                  @Param("name")  String name,
                  @Param("open")  Boolean open,
                  @Param("checked")  Boolean checked,
                  @Param("influencechild")  Boolean influencechild
   );

   Integer delete(@Param("SYSID") int SYSID);
}
